package com.gator.desig_mode.dicorator;

/**
 * @author 何章怀晓 hezhanghuaixiao
 * @version V1.0
 * @desc 被装饰者抽象类
 */
public abstract class Drink {

  private String desc;//描述

  private float price = 0.0f;//价格


  public void setDesc(String desc) {
    this.desc = desc;
  }

  public float getPrice() {
    return price;
  }

  public void setPrice(float price) {
    this.price = price;
  }

  public String getDesc() {
    return desc;
  }


  //计算价格
  public abstract float cost();

}
